package bairui.international.console.web.controller.authority.authorization.group.employee;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_Group;


/**
 * @generated
 *
 * C_Authority_Authorization_Group_EmployeeAdd_Add
 *
 */
@Controller
public class C_Authority_Authorization_Group_EmployeeAdd_Add
 extends SC_Authority_Authorization_Group_EmployeeAdd_Add 
{
	
	@Autowired @Lazy private Service_Group service_Group;

	/**
	 * 添加
	 */
	@Action(Add.class)
	@GetMapping(Add.RequestMappingValue)
	public @FomatOutput @ResponseBody Object add(
		ModelMap map, HttpServletRequest request, 
		@PathVariable(name=Add.PathVariableName.GroupId) long groupId, 
		@PathVariable(name=Add.PathVariableName.EmployeeId) long employeeId
	) throws Exception {
		service_Group.addEmployee(groupId, employeeId);
		return null;
	}
	

}


